import { http } from '@/utils'
const { makeAutoObservable } = require("mobx")
class ChannelStore {
  channelStore = []
  constructor() {
    makeAutoObservable(this)
  }
  loadChannelList = async () => {
    const res = await http.get("/channels")
    this.channelStore = res.data.channels
  }
}

export default ChannelStore